package com.css.crm.dao;

import java.util.List;

import com.css.crm.vo.QuestionnaireAnswerVo;

/**
 * Interface for DAO on table VP_QUEST_ANS
 * 
 * @author ais
 * 
 */
public interface QuestionnaireAnswerDao extends BaseDao {

	/**
	 * Get QuestionnaireAnswer record by QuestionnaireAnswer object
	 * 
	 * @param QuestionnaireAnswerVo
	 *            object QuestionnaireAnswerVo object to specific record to be
	 *            retrieved
	 * @return Unique QuestionnaireAnswer record
	 */
	QuestionnaireAnswerVo getQuestionnaireAnswerById(QuestionnaireAnswerVo vo);

	/**
	 * Delete QuestionnaireAnswer by QuestionnaireAnswer object
	 * 
	 * @param QuestionnaireAnswerVo
	 *            vo QuestionnaireAnswer object to specific record to be deleted
	 * @return Row count affected
	 */
	int deleteQuestionnaireAnswerById(QuestionnaireAnswerVo vo);

	/**
	 * Create QuestionnaireAnswer record
	 * 
	 * @param QuestionnaireAnswer
	 *            QuestionnaireAnswer object
	 * @return Row count affected
	 */
	int insertQuestionnaireAnswer(QuestionnaireAnswerVo vo);

	/**
	 * Update QuestionnaireAnswer record
	 * 
	 * @param QuestionnaireAnswerVo
	 *            Updated QuestionnaireAnswerVo object
	 * @return Row count affected
	 */
	int updateQuestionnaireAnswer(QuestionnaireAnswerVo vo);

	/**
	 * Get QuestionnaireAnswerVo by QuestionnaireAnswerVo obj
	 * 
	 * @param QuestionnaireAnswerVo
	 *            Object QuestionnaireAnswerVo to specific record to be
	 *            retrieved
	 * @return Collection QuestionnaireAnswerVo record
	 */
	List<QuestionnaireAnswerVo> getQuestionnaireAnswer(QuestionnaireAnswerVo vo);

}
